﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BE.Web.Betfair.Interface.Entities
{
    /// <summary>
    /// The Bet Price
    /// </summary>
    public sealed class BetPrice
    {
        /// <summary>
        /// Amount available at the odds specified.
        /// </summary>
        public double AviableAmount { get; private set; }

        /// <summary>
        /// The order, from best to worst, of the price ('1' is best available)
        /// </summary>
        public int Depth { get; private set; }

        /// <summary>
        /// Pricates
        /// </summary>
        public double Price { get; private set; }

        /// <summary>
        /// Indicates wether this is a price for back or lay
        /// </summary>
        public BackOrLay PriceType { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="BetPrice"/> class.
        /// </summary>
        /// <param name="price">The price.</param>
        /// <param name="depth">The depth.</param>
        /// <param name="aviableAmount">The aviable amount.</param>
        /// <param name="type">The type.</param>
        public BetPrice(double price,int depth, double aviableAmount,BackOrLay type)
        {
            this.Price = price;
            this.Depth = depth;
            this.AviableAmount = aviableAmount;
            this.PriceType = type;
        }
    }
}
